<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<body>

<div id="app">
  <div v-bind:style="styleObj">
    style对象语法
  </div>
</div>

<script src="../lib/vue.js"></script>
<script>
  let vm = new Vue({
    el: '#app',
    data: {
      styleObj: {
        color: 'red',
        'font-size': '28px',
        backgroundColor: 'yellow'
      }
    }
  })
</script>

</body>
</html>